package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户订阅模版消息（公众号、小程序）
 */
@Getter
@Setter
@Document(collection = "user_sub_template_msg")
public class UserSubTemplateMsg extends EntityBase {

    /**
     * 关闭接收消息
     */
    public static final String CLOSE_RECEIVE_MSG = "close_receive_msg";

    /**
     * 打开接收消息
     */
    public static final String OPEN_RECEIVE_MSG = "receive_msg";
    @Indexed
    private String userId;

    private String appId;

    @Indexed
    private String openId;
    @Indexed
    private String unionId;
    /**
     * 头像
     */
    private String avatarUrl;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * email
     */
    private String email;

    private String status = "close_receive_msg";
}